home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / nihcl-30.lha / nihcl-3.0 / ex / QLink.h < prev    next >
C/C++ Source or Header  |  1990-05-15  |  561b  |  26 lines

  1. #ifndef QLINK_H
  2. #define QLINK_H
  3.  
  4. // $Header: /afs/alw.nih.gov/unix/sun4_40c/usr/local/src/nihcl-3.0/share/ex/RCS/QLink.h,v 3.0 90/05/15 22:44:02 kgorlen Rel $
  5.  
  6. // QLink.h -- Link used by Vehicle queue LinkedLists
  7.  
  8. #ifndef MI
  9. #define MI
  10. #endif
  11.  
  12. #include "Link.h"
  13.  
  14. class QLink: public Link {
  15.     DECLARE_MEMBERS(QLink);
  16. protected:
  17.     QLink() {};
  18. public:
  19.     virtual int compare(const Object&) const = 0;
  20.     virtual unsigned hash() const = 0;
  21.     virtual bool isEqual(const Object&) const = 0;
  22.     virtual void printOn(ostream& strm =cout) const = 0;
  23. };
  24.  
  25. #endif
  26.